package com.dog.basics.bean.dto.admin.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 短信记录表
 * </p>
 *
 * @author guoy
 * @since 2020-03-23
 */
@Data
public class SmsLogAddDto implements Serializable {


    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", dataType = "Long", required = true)
    private Long userId;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码", dataType = "String", required = true)
    private String userPhone;

    /**
     * 短信内容
     */
    @NotBlank(message = "短信内容不能为空")
    @ApiModelProperty(value = "短信内容", dataType = "String", required = true)
    private String content;

    /**
     * 手机验证码
     */
    @NotBlank(message = "手机验证码不能为空")
    @ApiModelProperty(value = "手机验证码", dataType = "String", required = true)
    private String mobileCode;

    /**
     * 短信类型  1:注册  2:验证
     */
    @NotNull(message = "短信类型不能为空")
    @ApiModelProperty(value = "短信类型  1:注册  2:验证", dataType = "String", required = true)
    private Integer type;

    /**
     * 发送时间
     */
    @NotNull(message = "发送时间不能为空")
    @ApiModelProperty(value = "发送时间", dataType = "String", required = true)
    private Long recDate;

    /**
     * 状态  1:有效  0：失效
     */
    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = " 状态  1:有效  0：失效", dataType = "String", required = true)
    private Integer status;


}
